<link rel="stylesheet" type="text/css"  href="__CDN__/assets/scan/css/main.css">
<div class="main">
    <div class="w">
    	<div class="order clearfix order-init order-init-oldUser-noQrcode">
		    <div class="o-left">
		    	<h3 class="o-title">订单提交成功，请尽快付款！订单号：{$data_order.order}</h3>
		        <p class="o-tips">
		        	<span class="o-tips-time" id="deleteOrderTip"></span>
		        </p>
		    </div>
		    <div class="o-right">
		        <div class="o-price"><em>应付金额</em><strong>{$data_order.money}</strong><em>元</em></div>
		    </div>
		    <div class="o-list j_orderList" id="listPayOrderInfo"></div>
		</div>       
        <div class="payment">
            <div class="pay-weixin">
                <div class="p-w-hd">微信支付</div>
                <div class="p-w-bd" style="position:relative">
                    <div class="j_weixinInfo" style="position:absolute; top: -36px; left: 130px;">二维码有效时长2小时!<!-- 距离二维码过期还剩<span class="j_qrCodeCountdown font-bold font-red">14</span>秒，过期后请刷新页面重新获取二维码。 --></div>
                    <div class="p-w-box">
                        <div class="pw-box-hd">
                            <img src="__CDN__/qrcode/{$data_order.qrimg}.png" width="298" height="298">
                        </div>
                        <div class="pw-retry j_weixiRetry" style="display: none;">
                            <a class="ui-button ui-button-gray j_weixiRetryButton" href="javascript:getWeixinImage2();">获取失败 点击重新获取二维码  </a>
                        </div>
                        <div class="pw-box-ft">
                            <p>请使用微信扫一扫</p>
                            <p>扫描二维码支付</p>
                        </div>
                    </div>
                    <div class="p-w-sidebar"></div>
                </div>
            </div>
        </div>
    </div>
</div>
    <script language="JavaScript">
        /*
         由于微信支付完成后不可以跳转，这里写了个监听跳转
         */
        function Check(){
            $.ajax({
                url:"{:url('paylog')}",
                data:{order_number:"{$data_order.order}"},
                type:'get',
                success:function(msg){
                    if(msg==1){
                        alert("付款成功，跳转到订单列表页");
                        location.href = "{:url('user/myapply')}"
                    }
                }
            });
        }
        window.setInterval("Check()",3000);
    </script>